package com.flmz.system.domain.sysuser;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.flmz.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@TableName("tb_sys_user")
@Getter
@Setter
@ToString
public class SysUser extends BaseEntity {

	@TableId(type = IdType.ASSIGN_ID) // 雪花算法
	private Long userId; // 主键，不使用auto_increment

	private String userAccount;

	private String password;

	private String nickName;

	public static void main(String[] args) {
		SysUser sysUser = new SysUser();
		sysUser.setUserId(1L);
		System.out.println(sysUser.getUserId());
		System.out.println(sysUser);
	}
}
